@if(count($topics))
    <ul class="list-group mt-2">
        @foreach($topics as $topic)
            <li class="list-group-item border-0 border-bottom d-flex justify-content-between  px-2">
                <a class="text-decoration-none text-success" href="{{$topic->link()}}"><i class="fa-solid fa-location-dot"></i>&nbsp;{{$topic->title}}</a>
                <small class="text-muted" style="min-width: max-content;">
                    <i class="fa-regular fa-comment-dots"></i>
                    <a class="text-decoration-none text-muted" href="{{$topic->link()}}">
                        {{$topic->reply_count}}
                    </a>
                    <span>
                        •
                    </span>
                    <i class="fa-regular fa-clock"></i>
                    {{$topic->created_at->diffForHumans()}}
                </small>
            </li>
        @endforeach
    </ul>
    @include('shared._pages',['data'=>$topics])
@else
    @include('shared._no_data',['info'=>'TA还没有发过帖子'])
@endif
